app.service('searchService', function ($http) {

        this.search = function (searchMap) {
            console.log("=== service search === ");
            return $http.post('../itemSearch/search', searchMap);
        };
        this.addCart = function (id) {
            console.log(id);
            return $http.get('../cart/addGoodsToCartList?itemId=' + id + '&num=1');
        }

    }
)
;